package com.rmb.sigin;

import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ValueOperations;

public class Text {

    public static void main(String[] args) {
        RedisTemplate<String,String> redisTemplate = new RedisTemplate<>();
        String code = "123";
        ValueOperations valueOperations = redisTemplate.opsForValue();
        valueOperations.set("coode",code);
        Object code1 = valueOperations.get("coode");
        System.out.println(code1);
    }
    public static void run(){

    }
}
